<?php

namespace app\admin\controller;
use think\Request;
use think\Controller;
use app\admin\model\Category as model;
class Category extends  Controller
{
  public function index(){

    return view();

  }
  public function add(){

  	if ($this->request->isPost()) {

  		$data = Request::instance()->post();

  		$res=(new model())->getCreate($data);

        if ($res)
        {
            return  redirect('add');
        }
  	}

        return view();


  }
  public function show(){

  	return view();
  }

}
